package org.rbi.net;

import org.rbi.context.NetTransmitterContext;

public abstract class AbstractNetTransmitter {
    /**
     * 网络传输上下文
     */
    private NetTransmitterContext netTransmitterContext;

    public NetTransmitterContext getNetTransmitterContext() {
        return netTransmitterContext;
    }

    public void setNetTransmitterContext(NetTransmitterContext netTransmitterContext) {
        this.netTransmitterContext = netTransmitterContext;
    }

    public AbstractNetTransmitter(NetTransmitterContext netTransmitterContext) {
        this.netTransmitterContext = netTransmitterContext;
    }
    public abstract void sendBytes(Byte[] bytes);

    public abstract void readBytes(Byte[] bytes);

}
